package databean;


/**
 *
 * @author Keith
 */
public class RequestData {

    protected String firstName;
    protected String lastName;

    public RequestData() {
    }

    public String getFirstName() {
	if (isValidFirstName()) {
	    return firstName;
	} else {
	    return "";
	}
    }

    public void setFirstName(String firstName) {
	this.firstName = firstName;
    }

    public String getLastName() {
	if (isValidLastName()) {
	    return lastName;
	} else {
	    return "";
	}
    }

    public void setLastName(String lastName) {
	this.lastName = lastName;
    }

    public boolean isValidFirstName() {
	return firstName != null && !firstName.trim().equals("");
    }

    public boolean isValidLastName() {
	return lastName != null && !lastName.trim().equals("");
    }
}
